﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PositionInit.aspx.cs" Inherits="System_Position_PositionInit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>>正贸仓储物流管理系统</title>
    <link href="../../css/css.css" rel="stylesheet" type="text/css" />

    <script src="../../js/Validate.js"></script>

    <script type="text/javascript" language="javascript">
    
    //-->
    </script>
    
     <script type="text/javascript" language="javascript">
         function SelectAllCheckBox() {
             var form = document.forms[0];
             for (i = 0; i < form.elements.length; i++) {
                 if (form.elements[i].checked == false) {
                     j = 0;
                 }
                 else {
                     j = 1;
                 }
             } if (j == 0) {
                 for (i = 0; i < form.elements.length; i++) {
                     form.elements[i].checked = true;
                 }
             }
             else {
                 for (i = 0; i < form.elements.length; i++) {
                     form.elements[i].checked = false;
                 }
             }
         }
    </script>
    
    <style type="text/css">
        .style2
        {
            width: 35%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
         
         <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td style="height: 30px">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="background-image: url(../../images/tab_03.gif); background-repeat: repeat-x;
                                width: 12px;">
                                &nbsp;
                            </td>
                            <td style="background-image: url(../../images/tab_05.gif); background-repeat: repeat-x;
                                height: 30px;">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="width: 46%; vertical-align: middle;">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td style="width: 5%; vertical-align: middle;">
                                                        <img src="../../images/tb.gif" width="16" height="16" />
                                                    </td>
                                                    <td style="width: 95%;">
                                                        <span>你当前的位置</span>：系统管理-货位管理
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td width="54%">
                                            &nbsp;</td>
                                    </tr>
                                </table>
                            </td>
                            <td width="16" style="background-image: url(../../images/tab_07.gif); height: 30px;">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="background-image: url(../../images/tab_12.gif); width: 8px;">
                                &nbsp;
                            </td>
                            <td>
                                <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #b5d6e6;">
                                    <tr>
                                        <td style="padding: 2px;">
                                            <%--<table width="100%" cellspacing="0" cellpadding="0"  style="border: 1px solid #b5d6e6;">

                                                  <tr style="height: 32px;">
                                                    <td align="right" >
                                                        库区号：
                                                    </td>
                                                    <td style="width: 50%" align="left">
                                                        <asp:TextBox ID="txt_Area" runat="server" Style="width: 100px; height: 25px;
                                                            border: solid 1px #b5d6e6; font-size: 11pt;" Width="100px"></asp:TextBox>
                                                    </td>
                                                  </tr>
                                                  
                                                 <tr style="height: 32px;">
                                                   <td align="right" >
                                                        最大层数：
                                                    </td>
                                                    <td style="width: 50%" align="left">
                                                        <asp:TextBox ID="txt_Layer" runat="server" Style="width: 100px; height: 25px;
                                                            border: solid 1px #b5d6e6; font-size: 11pt;"></asp:TextBox>
                                                    </td>
                                                 </tr>
                                                 
                                                 <tr style="height: 32px;">
                                                   <td align="right">
                                                        最大列数：
                                                    </td>
                                                    <td td style="width: 50%" align="left">
                                                        <asp:TextBox ID="txt_Col" runat="server" Style="width: 100px; height: 25px;
                                                            border: solid 1px #b5d6e6; font-size: 11pt;"></asp:TextBox>
                                                    </td>
                                                 </tr>  
                                                 
                                                  <tr style="height: 32px;">
                                                   <td align="right" >
                                                        最大行数：
                                                    </td>
                                                    <td style="width: 50%" align="left">
                                                        <asp:TextBox ID="txt_Row" runat="server" Style="width: 100px; height: 25px;
                                                            border: solid 1px #b5d6e6; font-size: 11pt;"></asp:TextBox>
                                                    </td>
                                                 </tr>  
                                                 
                                                 <tr style="height: 32px;">
                                                    <td align="right" class="style2" >
                                                        <asp:ImageButton ID="ibtnSubmit" runat="server" ImageUrl="~/Images/btn/btn_add.gif"
                                                             onclick="ibtnSubmit_Click"  />
                                                        <asp:ImageButton ID="ibtnReset" runat="server" 
                                                            ImageUrl="~/Images/btn/btn_Reset.gif" onclick="ibtnReset_Click"
                                                            />
                                                       
                                                    </td>
                                                   
                                                    <td style="width: 50%" align="left" >
                                                        <asp:ImageButton ID="ibtnDel" runat="server" ImageUrl="~/Images/btn/Delete.gif" 
                                                            OnClientClick="return confirm('确定删除吗？')" 
                                                            />
                                                            
                                                        <asp:Label ID="Label_Infor" runat="server" ForeColor="Red" Visible="False"></asp:Label>
                                                            
                                                    </td>
                                                    
                                                </tr>
                                            </table>--%>
                                            
                                             <table width="100%" cellspacing="0" cellpadding="0"  style="border: 1px solid #b5d6e6;">

                                                  <tr style="height: 32px;">
                                                    <td align="right" >
                                                        巷道号：
                                                    </td>
                                                    <td style="width: 10%" align="left">
                                                        <asp:TextBox ID="txt_Lane" runat="server" Style="width: 90px; height: 25px;
                                                            border: solid 1px #b5d6e6; font-size: 9pt;" ></asp:TextBox>
                                                    </td>
                                                  
                                                    <td align="right" >
                                                        排数：
                                                    </td>
                                                    <td style="width: 10%" align="left">
                                                        <asp:TextBox ID="txt_Line" runat="server" Style="width: 90px; height: 25px;
                                                            border: solid 1px #b5d6e6; font-size: 9pt;"></asp:TextBox>
                                                    </td>
                          
                                                    <td align="right">
                                                        列数：
                                                    </td>
                                                    <td  style="width: 10%" align="left">
                                                        <asp:TextBox ID="txt_Col" runat="server" Style="width: 90px; height: 25px;
                                                            border: solid 1px #b5d6e6; font-size: 9pt;"></asp:TextBox>
                                                    </td>
                                        
                                                   <td align="right" >
                                                        层数：
                                                    </td>
                                                    <td style="width: 10%" align="left">
                                                        <asp:TextBox ID="txt_Layer" runat="server" Style="width: 90px; height: 25px;
                                                            border: solid 1px #b5d6e6; font-size: 9pt;"></asp:TextBox>
                                                    </td>
                                              
                                                    <td align="right" class="style2" >
                                                        <asp:ImageButton ID="ibtnSubmit" runat="server" ImageUrl="~/Images/btn/btn_add.gif"
                                                             onclick="ibtnSubmit_Click"  />
                                                        <asp:ImageButton ID="ibtnReset" runat="server" 
                                                            ImageUrl="~/Images/btn/btn_Reset.gif" onclick="ibtnReset_Click"
                                                            />
                                                         <asp:ImageButton ID="ibtnQuery" runat="server" 
                                                            ImageUrl="~/Images/btn/btn_Search.gif" onclick="ibtnQuery_Click" 
                                                             />  
                                                         <asp:ImageButton ID="ibtnDel" runat="server" ImageUrl="~/Images/btn/Delete.gif" 
                                                            OnClientClick="return confirm('确定删除吗？')" onclick="ibtnDel_Click" 
                                                            />
                            
                                                    </td>
                                       
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    
                                    <tr valign="top" style="height: 463px;">
                                        <td style="padding: 2px">
                                            <asp:GridView ID="gvPosition" runat="server" AutoGenerateColumns="False" Width="100%"
                                                BorderWidth="1px" BorderColor="#B5D6E6" CellPadding="0" DataKeyNames="巷道号"  
                                                >
                                                <Columns>
                                                    <asp:TemplateField>
                                                        <HeaderTemplate>
                                                            <input id="hchkSelect" type="checkbox" onclick="SelectAllCheckBox()" />
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="chkSelect" runat="server" />
                                                        </ItemTemplate>
                                                        <ItemStyle Width="5%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="序号">
                                                        <ItemTemplate>
                                                            <asp:Label ID="LabNumber" runat="server" Text="<%#Container.DataItemIndex+1%>"></asp:Label>
                                                        </ItemTemplate>
                                                        <ItemStyle Width="5%" />
                                                    </asp:TemplateField>
                                                    
                                                    <asp:TemplateField HeaderText="巷道号">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lab_Lane_ID" runat="server" Text='<%# Bind("巷道号") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <ItemStyle Width="20%" />
                                                    </asp:TemplateField>
                                                                    
                                                    
                                                     <asp:TemplateField HeaderText="排数">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lab_Max_No_Line" runat="server" Text='<%# Bind("排数") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <ItemStyle Width="20%" />
                                                    </asp:TemplateField>   
                                                    
                                                     <asp:TemplateField HeaderText="列数">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lab_Max_No_Col" runat="server" Text='<%# Bind("列数") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <ItemStyle Width="20%" />
                                                    </asp:TemplateField>  
                                                    
                                                    <asp:TemplateField HeaderText="层数">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lab_Max_No_Layer" runat="server" Text='<%# Bind("层数") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <ItemStyle Width="20%" />
                                                    </asp:TemplateField>    

                                                </Columns>
                                                <HeaderStyle HorizontalAlign="Center" CssClass="gvHeader" />
                                                <RowStyle CssClass="gvRow" HorizontalAlign="Center" />
                                            </asp:GridView>
                                        </td>
                                    </tr>
                                   
                                </table>
                            </td>
                            <td style="background-image: url(../../images/tab_15.gif); width: 8px;">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="background-image: url(../../images/tab_19.gif); height: 35px;">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="width: 12px; height: 35px;">
                                <img src="../../images/tab_18.gif" width="12" height="35" />
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td width="16">
                                <img src="../../images/tab_20.gif" width="16" height="35" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        
    </div>
    </form>
</body>
</html>
